package com.lolineet.page.result;

/**
 * @Auther lolineet
 * @Email tj.zhanghongwei@163.com
 * @Date 2021/11/24 14:15
 * @Description 分页返回值实体
 */
public class Result0<T> extends Result{

    private T data;

    private Pagination page;

    public Result0(int code, String message) {
        super(code,message);
    }

    public Result0(int code, String message, T data) {
        super(code,message);
        this.data = data;
    }

    public Result0(int code, String message, T data, Pagination page) {
        super(code,message);
        this.data = data;
        this.page = page;
    }

    public Result0() {
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Pagination getPage() {
        return page;
    }

    public void setPage(Pagination page) {
        this.page = page;
    }
}
